package natnumbers;

class NatNumbers{

	public static void main(String[] args){
		
		int total = 0;
		
		for(int current = 0; current < 1000;current++){
			if(current % 3 == 0 || current % 5 ==0){
				total = total + current;
			}
		}
		System.out.println("Total: " + total);
	}
}